import App from "./App";
// import commonMixin from './mixin/common.mixin.js'
import uView from "@/uni_modules/uview-ui";

import store from "./store";
// import tarbars from "@/components/tarbars/tarbars.vue";
let vuexStore = require("@/store/$u.mixin.js");
// #ifndef VUE3
import Vue from "vue";
import "./uni.promisify.adaptor";
Vue.config.productionTip = false;
// Vue.use(tarbars);
Vue.use(uView);

// main.js，注意要在use方法之后执行
// import uView from "uview-ui";
// Vue.use(uView);
// // 如此配置即可
// uni.$u.config.unit = "rpx";
Vue.mixin(vuexStore);
Vue.prototype.$store = store;

App.mpType = "app";

const app = new Vue({
  store,
  ...App,
});
app.$mount();
// #endif

// #ifdef VUE3
import { createSSRApp } from "vue";
export function createApp() {
  const app = createSSRApp(App);

  return {
    app,
  };
}
// #endif
